#ifndef __SQL_H__
#define __SQL_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sqlite3.h>
#include "tcp.server.h"

#define SIZE 1024
#define find_exist 11
#define find_result 12
#define exist 13



extern int sqlite_grop(char *sql);
extern int create_tab(char *name);//创建用户表
extern int init_sqlite3(char *name);
extern int insert_tab(char *name);
extern int delete_tab(char *name);
extern int update_tab(char *name, char *id);
extern int find_tab(char *sql, int num, int fd);//查找数据库是否存在用户
extern int show_result(void *pata, int columnCount, char **columnValue, char **columnName);
#endif